<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<h7 id="webStatus" style="display:none"><c:if test="${STATUS != null}">${STATUS.code}</c:if></h7>
<h7 id="webMessage" style="display:none"><c:if test="${STATUS != null}">${STATUS.message}</c:if></h7>
<script>

/**处理后台返回的WebStatusMessage*/
function dealwithMsg(webStatus,webMessage){
	if(debug){
		debugs("webStatus:"+webStatus+"   webMessage:"+webMessage);
	}
	if(empty(webStatus)){
		return ;
	}
	
	//{"showDuration": "0", "hideDuration": "0","timeOut": "0","extendedTimeOut": "0"}
	if(webStatus == 500) {
		if(empty(webMessage)) {
			alertError("<fmt:message key='Unknown.error.system'/>");
		}else{ 
			alertError(webMessage); 
		}
	}else if(webStatus == 200) {
		if(empty(webMessage)) {
			alertOk("<fmt:message key='Operation.is.successful'/>"); 
		}else{
			alertOk(webMessage); 
		}
	}
}

jQuery(document).ready(function() {
	dealwithMsg($("#webStatus").html(), $("#webMessage").html());
});
	//enter 监听事件
	/* $(function(){
		document.onkeydown = function(e){ 
		    var ev = document.all ? window.event : e;
		    if(ev.keyCode==13) {
		    	listFormPageSearch(1)
		     }
		}
	});  */
</script>